<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>49. 使用断言模糊电话号码</title>
</head>

<body>
   
</body>
<script>
   let users=`
   湘军电话：12345678901
   后盾人电话：98765432101
   `;
let reg=/(?<=\d{7})\d{4}/gi;
users=users.replace(reg,v=>{
    return '*'.repeat(4);
})
console.log(users);
</script>

</html>